<div class="head-top">
    <div class="main">
        <div class="top-wel">
            @if(session_get(UserEnum::USER_INFO_SESSION_KEY))
                <?php $cart_info = ShopService::instance()->ShopCartList();
                $price = ShopService::instance()->ShopCartSum();
                // dd($cart_info);
                $cart_count = ShopService::instance()->ShopCartCount();?>
                <!-- 登录后 -->
                <span class="login-after">
                    您好，（{{substr(session_get(UserEnum::USER_INFO_SESSION_KEY)->mobile,0,3)}}****{{substr(session_get(UserEnum::USER_INFO_SESSION_KEY)->mobile,7)}}）
                    <a href="/logout">退出</a>
                </span>
            @else
                <span>欢迎来钢链网</span>
                <!-- 未登录 -->
                <a href="/login" class="a-login">请登录</a>
                <a href="/register" class="a-register">免费注册</a>
            @endif
        </div>
        <div class="top-nav">
            <ul>
                <li><a href="/user_person">我的钢链网</a></li>
                <li><a href="/user_order?status=0">我的订单</a></li>
                <li><a href="/shop_user_news?type=all_message">消息中心<span>@if(session_get(UserEnum::USER_INFO_USER_ID)) <?php $count = ShopService::instance()->MessageCount(); if($count!=0){echo $count;}?> @endif</span></a></li>
                <li><a href="javascript:;">在线客服</a></li>
                <li><span><i></i>010-87152827</span></li>
            </ul>
        </div>
    </div>
</div>
<div class="main">
    <div class="head-nav">
        <div class="logo left">
            <a href="/"><img src="/resource/img/logo_foot.png" alt=""></a>
        </div>
        <div class="nav right">
            <ul>
                <li><a href="/foot_about">关于我们</a></li>
                <li><a href="/foot_lav">法律声明</a></li>
                <li><a href="javascript:;">诚聘英才</a></li>
                <li><a href="/foot_contact_us">联系我们</a></li>
                <li><a href="foot_dl">常见问题</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="clear"></div>